<?php
$post=$_POST;
$zhanghao=$post["userNumber"];
if ($post["remember"]){
		$psd=$post["userPwd"];
		setcookie("userPwd",$psd,time()+3600*360*24);//设置cookie，过期为一年；
	}
if ($post){
	setcookie("userNumber",$zhanghao,time()+3600*360*24);//设置cookie，过期为一年；
}
	$cookieuser=$_COOKIE["userNumber"];
	$cookiepsd=$_COOKIE["userPwd"];	
	if ($cookieuser!=""&&$cookiepsd!=""){
		require_once("index.class.php");	
		$post = $_COOKIE;
		$loginC = new indexpage();
		$loginC->login($post);
	}
/*
	echo"<script>alert($zhanghao);</scritp>";
	echo"<script>alert($password);</scritp>";
*/
?>